<?php
namespace app\mini\validate;


class CompanyGoodsValidate extends BaseValidate
{
    public function __construct()
    {
        $rule = [
            'goods_id' => 'require|integer',
        ];

        $message = [
            'goods_id.require' => '商品id不能为空',
            'goods_id.integer' => '商品id必须为整数',
        ];

        $scene = [
            'rule' => ['goods_id'],
            'detail' => ['goods_id'],
        ];
        parent::__construct($rule, $message, $scene);
    }
}